/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package GameLogic;

import java.awt.Color;
import java.awt.geom.Point2D;

public class Missile implements IMissile
{
    double initSpeed,
           curSpeed;
    double  curOrientation;
    double x, y;
    double dmg;
    DamageType dmgType;
    Mob target;
    Tower tower;
    Color col;
    public Missile(Mob t, Tower tow, double speed, double orientation, double damage, DamageType dt, double curX, double curY)
    {
        col = tow.type.missileColor;
        tower = tow;
        dmgType = dt;
        dmg = damage;
        target = t;
        initSpeed = speed;
        curSpeed = speed;
        curOrientation = orientation;
        x = curX;
        y = curY;
    }
    
    public Color GetColor()
    {
        return col;
    }
    
    public double GetSpeed()
    {
        return curSpeed;
    }
    public double GetOrientation()
    {
        return curOrientation;
    }
    public Point2D GetPosition()
    {
        return new Point2D.Double(x, y);
    }
}
